<?php

class Order_Detail extends Eloquent {
    protected $table = 'order_detail';
    public $timestamps = false;
  
    public static function ListOrder_Detail($order_id)
    {        
          try{
            
          
          $query_select="SELECT order_detail.*,goods.name as goodname FROM order_detail INNER JOIN goods ON  order_detail.good_id  = goods.id WHERE order_detail.order_id=$order_id" ;
     
            return DB::select($query_select);
            
        }
        catch(Exception $e)
        {
            throw $e;
        }

    }
    
}


?>